﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using KPIS.GERP.GBMS.APP_UI.Form;
using KPIS.GERP.GBMS.BLL;
using KPIS.GERP.GBMS.IBLL;
using KPIS.GERP.GBMS.MODEL;
using Telerik.Web.UI;

namespace KPIS.GERP.GBMS.APP_UI.Form
{
    public partial class Default : System.Web.UI.Page
    {
        private IStrategyVisionBLL bal = new StrategyVisionBLL();
        private Login login = new Login();
        private SsMng ssMng = new SsMng();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //IList<StrategyVisionInfo> infoList = bal.Search(-1);
                //if (infoList.Count > 0)
                //{
                //    lbVision.Text = bal.Search(-1)[0].Name;
                //}
                 
				// ssMng.CheckUss();
				/*
                HttpCookie cookie = Request.Cookies["UserDetail"];

                if (cookie != null)
                {
                    Session["EmpSeq"] = cookie["EmpSeq"];
                    Session["UserName"] = cookie["UserName"];
                    new SsMng().GetUss(SsMng.SsUserType.WorkingJobSiteSeq) = login.LoadEmployees();
                    Session["Height"] = cookie["Height"];
                }*/
            }

            string strPageName = Request.QueryString["page"];

            if (!string.IsNullOrEmpty(strPageName))
            {
                Response.Redirect("~/App_UI/Form/" + strPageName);
            }
        }

        //protected void cmdTest_Click(object sender, EventArgs e)
        //{
        //    Session["Height"] = hHeight.Value;
        //}
    }
}
